import java.util.Arrays;

public class Test {
    public static void swap(int i, int j) {
        int tmp = i;
        i = j;
        j = tmp;
    }
    public static void main(String[] args) {
        int[] array = {1,3};
        //此处交换两个数，数组不受影响
        swap(array[1],array[0]);
        System.out.println(Arrays.toString(array));
        int k = 0;
        int s = 0;
        int[] array1 = new int[2];
        array1[k++] = array[s++];
        System.out.println(Arrays.toString(array1));
        System.out.println(k);
        System.out.println(s);
    }
}